import request from '@/utils/request'

// 查询考试信息列表
export function listGradeexam(query) {
  return request({
    url: '/education/gradeexam/list',
    method: 'get',
    params: query
  })
}

// 查询考试信息详细
export function getGradeexam(examId) {
  return request({
    url: '/education/gradeexam/' + examId,
    method: 'get'
  })
}

// 新增考试信息
export function addGradeexam(data) {
  return request({
    url: '/education/gradeexam',
    method: 'post',
    data: data
  })
}

// 修改考试信息
export function updateGradeexam(data) {
  return request({
    url: '/education/gradeexam',
    method: 'put',
    data: data
  })
}

// 删除考试信息
export function delGradeexam(examId) {
  return request({
    url: '/education/gradeexam/' + examId,
    method: 'delete'
  })
}
